home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / include / Xm / CommandP.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-06-30  |  2.8 KB  |  112 lines

  1. /* 
  2.  * (c) Copyright 1989, 1990, 1991, 1992, 1993 OPEN SOFTWARE FOUNDATION, INC. 
  3.  * ALL RIGHTS RESERVED 
  4. */ 
  5. /* 
  6.  * Motif Release 1.2.3
  7. */ 
  8. /*   $RCSfile: CommandP.h,v $ $Revision: 10.1 $ $Date: 1994/02/03 15:35:27 $ */
  9. /*
  10. *  (c) Copyright 1989, DIGITAL EQUIPMENT CORPORATION, MAYNARD, MASS. */
  11. /*
  12. *  (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 HEWLETT-PACKARD COMPANY */
  13. #ifndef _XmCommandP_h
  14. #define _XmCommandP_h
  15.  
  16. #include <Xm/SelectioBP.h>
  17. #include <Xm/Command.h>
  18.  
  19. #ifdef __cplusplus
  20. extern "C" {
  21. #endif
  22.  
  23. /* Constraint part record for Command widget */
  24.  
  25. typedef struct _XmCommandConstraintPart
  26. {
  27.    char unused;
  28. } XmCommandConstraintPart, * XmCommandConstraint;
  29.  
  30. /*  New fields for the Command widget class record  */
  31.  
  32. typedef struct
  33. {
  34.     XtPointer           extension;      /* Pointer to extension record */
  35. } XmCommandClassPart;
  36.  
  37.  
  38. /* Full class record declaration */
  39.  
  40. typedef struct _XmCommandClassRec
  41. {
  42.    CoreClassPart            core_class;
  43.    CompositeClassPart       composite_class;
  44.    ConstraintClassPart      constraint_class;
  45.    XmManagerClassPart       manager_class;
  46.    XmBulletinBoardClassPart bulletin_board_class;
  47.    XmSelectionBoxClassPart  selection_box_class;
  48.    XmCommandClassPart       command_class;
  49. } XmCommandClassRec;
  50.  
  51. externalref XmCommandClassRec xmCommandClassRec;
  52.  
  53. /* New fields for the Command widget record */
  54.  
  55. typedef struct
  56. {
  57.     XtCallbackList       callback;
  58.     XtCallbackList       value_changed_callback;
  59.     int                  history_max_items;
  60.     Boolean              error;        /* error has been made visible in list */
  61. } XmCommandPart;
  62.  
  63.  
  64. /****************************************************************
  65.  *
  66.  * Full instance record declaration
  67.  *
  68.  ****************************************************************/
  69.  
  70. typedef struct _XmCommandRec
  71. {
  72.     CorePart            core;
  73.     CompositePart       composite;
  74.     ConstraintPart      constraint;
  75.     XmManagerPart       manager;
  76.     XmBulletinBoardPart bulletin_board;
  77.     XmSelectionBoxPart  selection_box;
  78.     XmCommandPart       command;
  79. } XmCommandRec;
  80.  
  81.  
  82.  
  83. /********    Private Function Declarations    ********/
  84. #ifdef _NO_PROTO
  85.  
  86. extern void _XmCommandReturn() ;
  87. extern void _XmCommandUpOrDown() ;
  88.  
  89. #else
  90.  
  91. extern void _XmCommandReturn( 
  92.                         Widget wid,
  93.                         XEvent *event,
  94.                         String *params,
  95.                         Cardinal *numParams) ;
  96. extern void _XmCommandUpOrDown( 
  97.                         Widget wid,
  98.                         XEvent *event,
  99.                         String *argv,
  100.                         Cardinal *argc) ;
  101.  
  102. #endif /* _NO_PROTO */
  103. /********    End Private Function Declarations    ********/
  104.  
  105.  
  106. #ifdef __cplusplus
  107. }  /* Close scope of 'extern "C"' declaration which encloses file. */
  108. #endif
  109.  
  110. #endif /* _XmCommandP_h */
  111. /* DON'T ADD ANYTHING AFTER THIS #endif */
  112.